    <!--右边栏 Start-->
    <div class="container-fluid">
        <div class="row-fluid">
            <div class="span12">
                <div class="page-header fm-hd">
                    <h4><span style="font-size:12px;">当前位置：商品管理&nbsp;&gt;&nbsp;</span>商品发布</h4>
                </div>
                <!-- 商品发布内容  开始 -->
                <div class="fm-body">
                    <form class="form-horizontal frm-ddqr" role="form" id="releasegoods">
                    	<input type="hidden" name="id" value="{{id}}"/>
                        <div class="jbxx bb1">
                            <div class="form-group label_type">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>商品类目所属类型：</label>
                                <div class="col-sm-5">
                                	{{if label_type!=null }}<input type="hidden" name="label_type_h"  id="label_type_h" value="{{label_type}}"/>{{/if}}
                                    <ul class="ul-radio">
                                        <li>
                                            <input type="radio" name="label_type" {{if label_type!=null }} disabled="disabled" {{/if}}class="chk"{{if label_type==null ||label_type==2}} checked="checked"{{/if}} id="r-fwsp"  value="2"/>
                                            <label for="r-fwsp">服务商品</label>
                                        </li>
                                        <li>
                                            <input type="radio" name="label_type"  {{if label_type!=null }} disabled="disabled"{{/if}}class="chk"{{if label_type==1}} checked="checked"{{/if}} id="r-xssp" value="1"/>
                                            <label for="r-xssp">销售商品</label>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="form-group"  type-target="3">
                                <label for="lastname" class="col-sm-3 control-label"><span class="redstar">*</span>商品分类：</label>
                                <div class="col-sm-5" id="gc_idbox">
                                    <ul class="ul-sel" >
                                    	{{if gc_id!=null}}
                                    	<script art-model="goods.class" art-controller="model.goods.class" in-name="gc_id" art-param='{"id":"{{gc_id}}"}' active></script>
                                    	{{else}}
                                    	<script art-model="goods.class" art-controller="model.goods.class" in-name="gc_id" art-param='{}'  active></script>
                                    	{{/if}}
                                    </ul>
                                    <span class="Validform_checktip"></span>
                                </div>
                            </div>
                            <div class="form-group"  type-target="3">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>商品标题：</label>
                                <div class="col-sm-5">
                                    <input type="text" class="form-control" name="goods_name"  placeholder="请输入商品标题名称" datatype="*3-30" errormsg="标题至少3个字符,最多30个字符！" value="{{goods_name}}"/>
                                    <div class="memotip">商品标题名称长度至少<span class="rednum">3</span>个字符，最长<span class="rednum">30</span>个字符</div>
                                </div>
                            </div>
                            <div class="form-group"  type-target="3">
                                <label for="lastname" class="col-sm-3 control-label">商品副标题：</label>
                                <div class="col-sm-5">
                                    <textarea class="form-control" rows="3" name="goods_subhead"  datatype="/^\s*$/|*3-150">{{goods_subhead}}</textarea>
                                    <div class="memotip">商品副标题名称长度至少<span class="rednum">3</span>个字符，最长<span class="rednum">150</span>个字符</div>
                                </div>
                            </div>
                        </div>
                        <div class="kcjg bb1" id="kcjg"  type-target="1">
                            <div class="form-group">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>销售价：</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control w150" name="goods_price" placeholder="请输入销售价" datatype="priceCompare" ltto="goods_current_price" lttomsg="销售价格必须大于会员价格!" errormsg="销售价必须是0.01-99999.99的数字！" value="{{goods_price}}"></textarea>
                                </div>
                            </div>
                            <div class="form-group" >
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>会员价：</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control w150" name="goods_current_price" placeholder="请输入会员价" datatype="priceCompare" gtto="goods_price" gttomsg="会员价格必须小于销售价格!"  errormsg="会员价必须是0.01-99999.99的数字！" value="{{goods_current_price}}"></textarea>
                                </div>
                            </div>
                        </div>
                         <div class="ggcs bb1" id="ggcs" >
                            <!-- <div class="form-group" id="xqpz" type-target="3" >
                            	{{if goodsDeliverDetail != null}}
                            	<script art-model="goods.vip_trans_area_list" art-controller="model.goods.vip_trans_area_list" in-name="vip_tran_area_id"  art-param='{"id":"{{goodsDeliverDetail.vip_tran_area_id}}"}'  active></script>
                            	{{else}}
                            	<script art-model="goods.vip_trans_area_list" art-controller="model.goods.vip_trans_area_list" in-name="vip_tran_area_id" active></script>
                            	{{/if}}  -->
                            	
                            	<!-- 
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>小区配置：</label>
                                <div class="col-sm-9">
                                    <div class="f-l">
                                        <select class="form-control w150">
                                            <option>请选择</option>
                                            <option>宅配模板1</option>
                                        </select>
                                    </div>
                                    <div class="fmbox box4">
                                        <a href="#">
                                            <i class="iconfont">&#xe609;</i>加载新增配送模板
                                        </a>
                                    </div>
                                    <div class="box5">
                                        <a href="#">
                                            <i class="iconfont">&#xe608;</i>新建配送模板
                                        </a>
                                    </div>
                                </div>
                                 -->
                           <!--  </div> -->
                            <div class="form-group" id="pssj" type-target="2">
                            {{if goodsDeliverDetail != null}}
                            <script art-model="goods.store_frequency_list" art-controller="model.goods.store_frequency_list" in-name="freq_temp_id"  art-param='{"id":"{{goodsDeliverDetail.freq_temp_id}}"}'  active></script>
                            {{else}}
                            <script art-model="goods.store_frequency_list" art-controller="model.goods.store_frequency_list" in-name="freq_temp_id"  active></script>
                            {{/if}}
                            <!-- 
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>配送时间：</label>
                                <div class="col-sm-9">
                                    <div class="f-l">
                                        <select class="form-control w150">
                                            <option>请选择</option>
                                            <option>周二周四</option>
                                        </select>
                                    </div>
                                    <div class="fmbox box4">
                                        <a href="#">
                                            <i class="iconfont">&#xe609;</i>加载新增配送时间
                                        </a>
                                    </div>
                                    <div class="box5">
                                        <a href="#">
                                            <i class="iconfont">&#xe608;</i>新建配送时间
                                        </a>
                                    </div>
                                </div>
                             -->

                            </div>
                            <div class="form-group" id="psgg" type-target="2">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>配送规格次数：</label>
                                <div class="col-sm-9">
                                    <div class="fl box5 ml0">
                                        <a href="javascript:void(0);" id="addgg">
                                            <i class="iconfont">&#xe608;</i>新增规格
                                        </a>
                                    </div>
                                   <div class="fl ml10" style="color:#999; font-size:14px; line-height:32px;">手机端sku按价格排序</div>
                                    <div class="clearit"></div>
                                    <!-- 新增规格层 开始 -->
                                    <div class="newgg" style="width:740px; display:none;">
                                        <div class="new-hd">
                                            <ul class="ul-gghd">
                                                <li>配送名称</li>
                                                <li>配送次数</li>
                                                <li>原价</li>
                                                <li>售价</li>
                                                <!-- <li>不含运费价</li> -->
                                                <li>操作</li>
                                            </ul>
                                        </div>
                                        <div class="new-bd">
                                            <ul class="ul-ggbd" id="ggbd">
                                            	<script art-model="goods.skulist" art-controller="model.goods.skulist"  art-param='{"goodsId":"{{id}}"}' active></script>
                                                <!--
                                                <li>
                                                    <div class="w150">
                                                    <input type="text" class="form-control" placeholder="最多输入8个字"/>
                                                    </div>
                                                    <div class="w130">
                                                    <input type="text" class="form-control" placeholder="最大值999"/>
                                                    </div>
                                                    <div class="w130">
                                                    <input type="text" class="form-control" placeholder="最大值999"/>
                                                    </div>
                                                    <div class="w130">
                                                    <input type="text" class="form-control" placeholder="0"/>
                                                    </div>
                                                    <div class="w110">
                                                    <a href="#">删除</a>
                                                    </div>
                                                </li>
                                                -->
                                            </ul>
                                        </div>
                                    </div>
                                    <!-- 新增规格层 结束 -->
                                    <input name="sku" type="hidden"/>
                                    <input name="del_skuids" type="hidden"/>
                                    <!-- 配送模板默认值0 -->
                                    <input  name="vip_tran_area_id" type="hidden" value="0">
                                	<span class="Validform_checktip"></span>
                                </div>
                            </div>
                        </div>
                        <div class="qtxx bb1">
                            <div class="form-group" type-target="3">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>库存：</label>
                                <div class="col-sm-2">
                                    <input type="text" class="form-control w150" name="goods_inventory" datatype="/^[1-9][0-9]{0,8}$/"  errormsg="库存必须是1-999999999的数字！" value="{{goods_inventory}}"/>
                                </div>
                            </div>
                            <div class="form-group" type-target="3">
                                <label for="firstname" class="col-sm-3 control-label">立即发布：</label>
                                <div class="col-sm-9">
                                    <ul class="ul-radio">
                                        <li>
                                            <input type="radio" name="goods_status" class="chk"{{if goods_status==null ||goods_status==0}} checked="checked"{{/if}} value="0"/>是</li>
                                        <li>
                                            <input type="radio" name="goods_status" class="chk"{{if goods_status==1}} checked="checked"{{/if}} value="1"/>否</li>
                                    </ul>
                                    <div class="clearit"></div>
                                </div>
                            </div>
                            <div class="form-group" type-target="3">
                                <label for="firstname" class="col-sm-3 control-label">商品推荐：</label>
                                <div class="col-sm-9">
                                    <ul class="ul-radio">
                                        <li>
                                            <input type="radio" name="goods_recommend" class="chk" {{if goods_recommend}} checked="checked"{{/if}} value="1"/>是</li>
                                        <li>
                                            <input type="radio" name="goods_recommend" class="chk"{{if goods_recommend==null ||goods_recommend==false}} checked="checked"{{/if}} value="0"/>否</li>
                                    </ul>
                                    <div class="clearit"></div>
                                    <div class="memotip">被推荐的商品会显示在店铺首页</div>
                                </div>
                            </div>
                            <div class="form-group" type-target="2">
                                <label for="firstname" class="col-sm-3 control-label">购买该商品成为会员：</label>
                                <div class="col-sm-9">
                                    <ul class="ul-radio">
	                                    {{if goodsDeliverDetail != null}}
                                        <li>
                                            <input type="radio" name="is_become_member" class="chk" {{if goodsDeliverDetail.is_become_member}} checked="checked"{{/if}} value="1"/>是</li>
                                        <li>
                                            <input type="radio" name="is_become_member" class="chk" {{if goodsDeliverDetail.is_become_member==false}} checked="checked"{{/if}} value="0"/>否</li>
		                            	{{else}}
                                        <li>
                                            <input type="radio" name="is_become_member" class="chk" value="1"/>是</li>
                                        <li>
                                            <input type="radio" name="is_become_member" class="chk" checked="checked" value="0"/>否</li>
		                            	{{/if}}
                                    </ul>
                                    <div class="clearit"></div>
                                </div>
                            </div>
                        </div>
                        <div class="tpms">
                            <div class="form-group" type-target="3">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>商品图片：</label>
                                <div class="col-sm-9">
                                    <div class="ImgDivList">
                                		<input type="hidden"  id="accTmp"  datatype="*" nullmsg="请上传商品图片!"  value="{{each photos as photo i}},{{photo.path}}{{/each}}"/>
                                        <div class="uploadwrap">
	                                        <div class="itemPics" id="itemPics">
	                                        {{each photos as photo i}}
	                                        <span class="spanImg"><i class="fmzp" style="cursor:pointer;">&#xe60c;</i><img src="{{imgRoot}}{{photo.path}}{{photo.ext}}" width="70" height="70" /><input type="hidden" name="accessoryGoodsStrs" value="{{photo.path}}:{{photo.ext}}" readonly /></span>
											{{/each}}
	                                        </div>
	                                        <div class="uploadfyDiv" id="uploadfyImg">
	
	                                        </div>
                                        </div>
                                        <div class="clearit"></div>
                                        <p style="clear:both; color:#999; line-height:24px;">最多上传5张</p>
                                    </div>
                                    
                                </div>
                            </div>
                            <div class="form-group" type-target="3">
                                <label for="firstname" class="col-sm-3 control-label"><span class="redstar">*</span>商品描述：</label>
                                <div class="col-sm-9">
                                    <textarea id="goods_details" name="goods_details" datatype="*" nullmsg="请填写商品详情!"  ></textarea>
                                </div>
                            </div>
                        </div>
                        <div class="spfb-btn">
                            <button class="btn btn-primary">提交</button>
                        </div>
                    </form>
                </div>
                <!-- 商品发布内容  结束 -->
            </div>
        </div>
    </div>
    <!--右边栏 End-->
